package org.ykh.srb.feign.core.pojo.entity;


import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 数据字典
 * </p>
 *
 * @author ykh
 * @since 2024-03-12
 */
@Getter
@Setter

public class DictEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    private Long id;

    private Long parentId;

    private String name;

    private Integer value;

    private String dictCode;


    @DateTimeFormat
    @JsonFormat
    private LocalDateTime createTime;

    @DateTimeFormat
    @JsonFormat
    private LocalDateTime updateTime;


    private Boolean deleted;

    @Override
    public String toString() {
        final StringBuffer sb = new StringBuffer("DictEntity{");
        sb.append("id=").append(id);
        sb.append(", parentId=").append(parentId);
        sb.append(", name='").append(name).append('\'');
        sb.append(", value=").append(value);
        sb.append(", dictCode='").append(dictCode).append('\'');
        sb.append(", createTime=").append(createTime);
        sb.append(", updateTime=").append(updateTime);
        sb.append(", deleted=").append(deleted);
        sb.append('}');
        return sb.toString();
    }
}
